<%@ page contentType="text/html;charset=utf-8" %>
<%@ page import="java.util.Random" %>
<%
Random random = new Random();
int number = random.nextInt();
String numberString = Integer.toString(number);
%>
<script type="text/javascript">
location.href = "<%= request.getContextPath() %>/res_rv.jsp?num=<%= numberString %>";
</script>